
const KEY = '109-hm-exp-token'

/**
 * 存token
 * @param {string} newToken
 */
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken)
}

/**
 * 获取token
 * @returns
 */
export const getToken = () => {
  return localStorage.getItem(KEY)
}

/**
 * 清除token
 */
export const removeToken = () => {
  localStorage.removeItem(KEY)
}
